Screenshot taken from Coursera
Screenshot taken from Coursera
Screenshot taken from Coursera
Screenshot taken from Coursera
Screenshot taken from Coursera
Screenshot taken from Coursera
Screenshot taken from Coursera
Screenshot taken from Coursera
Answer
At this node, the y values have:
The classification error is: 1/4 = 0.25
Screenshot taken from Coursera
Answer
In [47]:
print ' %s' % 'root (3, 1)'
print ' |---------------|----------------|'
print ' | |'
print ' | |'
print ' | |'
print ' node_1 (2,0) node_1 (1,1) '
Classification error = 1/4 = 0.25
Screenshot taken from Coursera
Answer
In [48]:
print ' %s' % 'root (3, 1)'
print ' |---------------|----------------|'
print ' | |'
print ' | |'
print ' | |'
print ' node_1 (2,1) node_1 (1,0) '
Classification error = 1/4 = 0.25
Screenshot taken from Coursera